package com.fitness.fitness.convertor;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fitness.fitness.modal.resource.dto.VenueDto;
import com.fitness.fitness.modal.resource.entity.Venue;
import com.fitness.fitness.modal.resource.vo.VenueVO;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface VenueConvertor {
    VenueVO entity2Vo(Venue result);

    Page<VenueVO> entity2vo(Page<Venue> retPage);

    Venue dto2entity(VenueDto venueDto);

    List<VenueVO> entities2Vos(List<Venue> venues);
}
